花费 5 ms
Uncaught (in promise) TypeError: this.setState is not a function

造成这个的原因多数是因为,  this  的指向错误,尤其是在我们  自定义函数  的时候报错 解决办法: 将自定义函数改成箭头函数 如,将这种写法 换成箭头函数,就变成 ...

Thu May 28 00:59:00 CST 2020 0 1847

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM